package com.mingqijia.gassafety.webserver.response;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import com.mingqijia.gassafety.webserver.request.EquipmentPeriodRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author guoliang.lao
 * @version 1.0.0
 * @ClassName BusinessNoticeResponse.java
 * @Description 业务通知返回
 * @createTime 2022年04月28日
 */
@Data
public class BusinessNoticeResponse {

    @ApiModelProperty("id，主键id，当该字段不为空时，调用编辑接口；当字段为空时，调用创建接口")
    private Integer id;

    @ApiModelProperty("简称")
    private String paramName = "";

    @ApiModelProperty("参数")
    private String paramCode = "";

    @ApiModelProperty("参数值")
    private String paramValue = "";

    @ApiModelProperty("参数类型 1：开关 2：参数设置")
    private String paramType = "";

    @ApiModelProperty("备注")
    private String remark = "";

    @ApiModelProperty(value = "客户联系人级别")
    private String pushLevel;

    @ApiModelProperty(value = "推送员工手机号;分割")
    private String pushStaffs;

    @ApiModelProperty(value = "推送额外手机号;分割")
    private String pushPhones;

    @ApiModelProperty(value = "讯飞appkey")
    private String appKey;

    @ApiModelProperty(value = "讯飞appsecret")
    private String appSecret;

    @ApiModelProperty(value = "讯飞话术id")
    private String robotId;

    @ApiModelProperty(value = "讯飞话术内容")
    private String robotContent;

    @ApiModelProperty(value = "讯飞线路号")
    private String lineNum;

    @ApiModelProperty(value = "讯飞语音音色code")
    private String voiceCode;

    @ApiModelProperty(value = "设置范围 1-所有设备、2-设备类型、3-设备型号")
    private Integer setRange;

    @ApiModelProperty(value = "设置范围 1-报警记录未处理提醒 2-故障记录未处理提醒")
    private String setRadius;

    @ApiModelProperty(value = "设备周期数组")
    private List<EquipmentPeriodRequest> equipmentPeriod;

    @ApiModelProperty(value = "设备周期")
    private String period;

    @ApiModelProperty(value = "离线情况是否通知 true-1、false-0")
    private Boolean isNotice;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    //弹窗分钟
    @ApiModelProperty(value = "弹窗分钟")
    @TableField("pop_minutes")
    private Integer popMinutes;

    //弹窗秒
    @ApiModelProperty(value = "弹窗秒")
    @TableField("pop_seconds")
    private Integer popSeconds;
}
